module.exports = (sequelize, Sequelize) => {
    const Tutorial = sequelize.define('tutorial', {
        // 在这里定义模型属性
        title: {
            type: Sequelize.STRING,
            allowNull: false
        },
        description: {
            type: Sequelize.STRING
            // allowNull 默认为 true
        },
        published: {
            type: Sequelize.BOOLEAN
        }
    })
    return Tutorial
}

